package com.shop.controller;

import com.shop.service.TFoodService;
import com.sun.deploy.net.HttpRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Cxl-PC on 2017/8/4.
 */
@RequestMapping("/food")
public class TFoodController {

    @Autowired
    private TFoodService TFoodService;

    @RequestMapping("/foodList")
    @ResponseBody
    public String foodList(){
        System.out.println(TFoodService);
        return "index";
    }
}
